home *** CD-ROM | disk | FTP | other *** search
/ STraTOS 1997 April & May / STraTOS 1 - 1997 April & May.iso / CD01 / PRGMANIA / XA_6S / SOURCE / INFOWIDG.C < prev    next >
Encoding:
C/C++ Source or Header  |  1996-07-10  |  1.2 KB  |  51 lines

  1. /*
  2.  * XaAES - XaAES Ain't the AES
  3.  *
  4.  * A multitasking AES replacement for MiNT
  5.  *
  6.  */
  7.  
  8. #include <OSBIND.H>
  9. #include <VDI.H>
  10. #include "XA_TYPES.H"
  11. #include "XA_DEFS.H"
  12. #include "XA_GLOBL.H"
  13. #include "KERNAL.H"
  14. #include "K_DEFS.H"
  15. #include "GRAF_MOU.H"
  16. #include "MESSAGES.H"
  17. #include "C_WINDOW.H"
  18. #include "RECTLIST.H"
  19. #include "ALL_WIDG.H"
  20. #include "STD_WIDG.H"
  21.  
  22. /*======================================================
  23.     INFO BAR WIDGET BEHAVIOUR
  24. ========================================================*/
  25. short display_info(XA_WINDOW *wind, XA_WIDGET *widg)
  26. {
  27.     short x,y,pnt[6];
  28.  
  29.     rp_2_ap(wind, widg, &x, &y);    /* Convert relative coords and window location to absolute screen location */
  30.  
  31.     vsl_color(V_handle,display.dial_colours.b_r_col);
  32.  
  33.     pnt[0]=x+3; pnt[1]=y+widg->h-1;
  34.     pnt[2]=x+3; pnt[3]=y+1;
  35.     pnt[4]=x+wind->w-4; pnt[5]=y+1;
  36.     v_pline(V_handle,3,pnt);
  37.     
  38.     vsl_color(V_handle,display.dial_colours.t_l_col);
  39.  
  40.     pnt[0]=x+wind->w-4; pnt[1]=y+2;
  41.     pnt[2]=x+wind->w-4; pnt[3]=y+widg->h-1;
  42.     pnt[4]=x+4; pnt[5]=y+widg->h-1;
  43.     v_pline(V_handle,3,pnt);
  44.     
  45.     vst_color(V_handle,BLACK);
  46.  
  47.     v_gtext(V_handle, x+5,y, (char*)widg->stuff);
  48.  
  49.     return TRUE;
  50. }
  51.